using System.Collections.Generic;
using UnityEngine;

[CreateAssetMenu(fileName = "Condition18-友方的资源数量大于等于资源", menuName = "Skill/Condition/Condition18-友方的资源数量大于等于资源", order = 18)]
public class Condition18 : ConditionBase
{
    public int resourceCount;
    public override bool Evaluate(Pair pair,GameEvent e)
        {
        var count = pair.Chess.GetChessSide() ==  ChessSide.Player1? PlayerResourcesManager.GetInstance().Player1Resources : PlayerResourcesManager.GetInstance().Player2Resources ;
        return count >= resourceCount;
    }
}